<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        * {
            list-style: none;
            padding: 0px;
            margin: 0px;
        }

        .ul {
            display: flex;
            background-color: coral;
            width: 800px;
            height: 100px;
        }

        .ul>li {
            flex-shrink: 0;
            background-color: orange;
            height: 50px;
            width: 100px;
            box-sizing: border-box;
            border: 1px solid #fff;
        }
    </style>
</head>
<body>
    <ul class="ul">
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li style="flex-shrink: 1;">flex-shrink不为0</li>
        <li>5</li>
        <li>6</li>
        <li>7</li>
        <li>8</li>
        <li>9</li>
        <li>10</li>
    </ul>
</body>
</html>